2f54b89a23ccd95df7df89d2b1da04efece4ae16,core/src/main/java/org/elasticsearch/plugins/PluginManager.java,PluginManager,downloadAndExtract,#String#,111

Before Change


            Path configDestLocation = pluginHandle.configDir(environment);
            debug("Found config, moving to " + configDestLocation.toAbsolutePath());
            moveFilesWithoutOverwriting(configFile, configDestLocation, ".new");
            debug("Installed " + name + " into " + configDestLocation.toAbsolutePath());
            potentialSitePlugin = false;
        }

After Change


            } else {
                terminal.println(VERBOSE, "Skipping posix permissions - filestore doesn't support posix permission");
            }
            terminal.println(VERBOSE, "Installed %s into %s", name, toLocation.toAbsolutePath());
            potentialSitePlugin = false;
        }

        Path configFile = extractLocation.resolve("config");
        if (Files.isDirectory(configFile)) {
            Path configDestLocation = pluginHandle.configDir(environment);
            terminal.println(VERBOSE, "Found config, moving to %s", configDestLocation.toAbsolutePath());
            moveFilesWithoutOverwriting(configFile, configDestLocation, ".new");
            terminal.println(VERBOSE, "Installed %s into %s", name, configDestLocation.toAbsolutePath());
            potentialSitePlugin = false;
        }